<?php if ($this->paginator->getTotalItemCount() > 0): ?>
<div id="comment-wrapper">
    <div class="quotetop">
        <h3><?php echo $this->paginator->getTotalItemCount() ?> Comments</h3>
    </div>
        <?php if (count($this->paginator)): ?>
        <?php foreach ($this->paginator as $comment): ?>
        <div class="comment">
            <?php if(!empty($comment['url'])): ?>
            <p><a href="<?php echo $this->escape($comment['url']) ?>"><?php echo $this->escape($comment['name']) ?></a> said..</p>
            <?php else: ?>
            <p><?php echo $this->escape($comment['name']) ?> said..</p>
            <?php endif; ?>
            <p><?php echo $comment['comment'] ?></p>
            <span class="date"><?php echo $this->formatDate($comment['date']) ?></span>
        </div>
        <?php endforeach; ?>
        <?php echo $this->paginationControl($this->paginator, 'Elastic', '/partials/_paginatorComments.phtml'); ?>
        <?php endif; ?>
    <div class="quotebottom"></div>
</div>
<?php endif; ?>
